﻿@using OBUCare.Web.Models;
@using OBUCare.Core.Models;
@using OBUCare.Web.Infrastructure;
@using OBUCare.Core.BL;
@using OBUCare.Core.Common;
@{
    ObuDropDownListHlper ddlHelper = new ObuDropDownListHlper();
}
<table style="width: 900px;">
    @for (int i = UIConstants.InvoiceControlFromIndex; i <= UIConstants.InvoiceControlToIndex; i++)
    {
        string id = i.ToString();
        <tr>
            <td style="width:80px; text-align:left">
                发票类型 @i：
            </td>
            <td style="width:60px;">
                @Html.Telerik().DropDownList().Name("INVOICE_TYPE" + id).BindTo(ddlHelper.GetDataSource(ConfigMgr.tblInvoiceType, true, null, false, null)).HtmlAttributes(new { @style="width:60px"})
            </td>
            <td style="width:80px; text-align:left">
                @Html.Label("", "发票号" + i, new { @id = "INVOICENO" + i })
                @* 发票号：*@
            </td>
            <td style="width:250px; text-align:left">
                @Html.TextBox("INVOICE_NO" + id, "", new { @style = "width:250px;height:15px" })
            </td>
            <td style="width:80px; text-align:left">
                金额：
            </td>
            <td style="width:100px; text-align:left">
             @*   @Html.Telerik().NumericTextBox().Name("AMOUNT" + id).EmptyMessage("请输入金额！").MinValue(0).InputHtmlAttributes(new { @style = "width:80px;" }).Value(5)*@
                 @Html.TextBox("AMOUNT" + id, "", new { @style = "width:80px;height:15px" })
                <span>(元)</span>
            </td>
        </tr>
            
    }
</table>
@{
    ddlHelper.Dispose();    
}
